package src.unapec.security.models.EntornoJava;

import java.security.SecureRandom;
import java.security.Security;

public class SecureRAM {
	
  public static void main(String args[]) throws Exception {
	  
	//http://java.sun.com/j2se/1.4.2/docs/api/java/security/SecureRandom.html  
	//http://www.mundocripto.com/mambo/content/view/133/43/  
	  
    Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    SecureRandom rng = SecureRandom.getInstance("SHA1PRNG");
    rng.setSeed(711);

    int numberToGenerate = 999;
    byte randNumbers[] = new byte[numberToGenerate];

    rng.nextBytes(randNumbers);
    
    for(int j=0; j<numberToGenerate; j++) {
        System.out.print(randNumbers[j] + " ");
    }

  }
}
           
